package com.nuaa.service.announcement.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.nuaa.dao.announcement.inter.AnnounceDaoInter;
import com.nuaa.domain.announcement.AnnounceEntity;
import com.nuaa.service.announcement.inter.AnnounceServiceInter;
import com.nuaa.utils.AjaxMsg;
/**
 * 通告管理service
 * @author heaven
 *
 */
@Service("announceService")
public class AnnounceServiceImpl implements AnnounceServiceInter{
	@Resource(name="announceDao")
	AnnounceDaoInter announceDao;
	/**提交通告*/
	@Override
	public AjaxMsg subAnnounceInfo(AnnounceEntity entity) {
		return announceDao.subAnnounceInfo(entity);
	}
	/**获取所有通告*/
	@Override
	public List<AnnounceEntity> getAllInfo(){
		return announceDao.getAllInfo();
	}
}
